package com.example.dig.model;

import com.example.dig.util.Excel;

/**
 * @author ZH
 */
public class Animal {

    @Excel(name = "名称")
    private String name;
    @Excel(name = "数量")
    private int count;
    @Excel(name = "国家保护动物",dictValue = "true=是,false=否")
    private boolean isProtected;

    public Animal() {
    }

    public Animal(String name, int count, boolean isProtected) {
        this.name = name;
        this.count = count;
        this.isProtected = isProtected;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public boolean isProtected() {
        return isProtected;
    }

    public void setProtected(boolean aProtected) {
        isProtected = aProtected;
    }
}
